<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Generator" content="Asbru Web Content Editor">
<meta http-equiv="Copyright" content="(C) 2002-2006 - Asbru Ltd. - www.asbrusoft.com">
<script type="text/javascript" src="webeditor.properties.js"></script>
<title>Asbru Web Content Editor</title>
<link rel="stylesheet" href="../dtree.css" type="text/css">
<script type="text/javascript" src="../dtree.js"></script>
<link rel="stylesheet" type="text/css" href="../hardcore.css"> 
<link rel="stylesheet" type="text/css" href="webeditor.css">
<script type="text/javascript">

document.title = HtmlDecode(Text('hyperlinklistfilter_title'));

function requestParameter(name) {
	var value = "";
	if (start = request.indexOf("?"+name+"=")+1) {
		value = request.substring(start+name.length+1);
	} else if (start = request.indexOf("&"+name+"=")+1) {
		value = request.substring(start+name.length+1);
	}
	if (value.indexOf("&")+1) {
		value = value.substring(0, value.indexOf("&"));
	}
	value = unescape(value);
	return value;
}

var request = "" + window.location;
editor = requestParameter("editor");

function openit(section,category,title) {
<?php if (($upload_path <> "") && ($enable_upload == "yes")) { ?>
	if (category == '') {
		if (document.getElementById) {
			if (document.getElementById('create')) document.getElementById('create').href = 'hyperlinkcategory.php?action=Create&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title)+'&editor=' + editor;
			if (document.getElementById('update')) document.getElementById('update').href = 'javascript:alert(\'' + HtmlDecode(Text('hyperlinklistfilter_updatecategory')) + '\');';
			if (document.getElementById('delete')) document.getElementById('delete').href = 'javascript:alert(\'' + HtmlDecode(Text('hyperlinklistfilter_deletecategory')) + '\');';
		} else if (document.all) {
			if (document.all['create']) document.all['create'].href = 'hyperlinkcategory.php?action=Create&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title)+'&editor=' + editor;
			if (document.all['update']) document.all['update'].href = 'javascript:alert(\'' + HtmlDecode(Text('hyperlinklistfilter_updatecategory')) + '\');';
			if (document.all['delete']) document.all['delete'].href = 'javascript:alert(\'' + HtmlDecode(Text('hyperlinklistfilter_deletecategory')) + '\');';
		}
	} else {
		if (document.getElementById) {
			if (document.getElementById('create')) document.getElementById('create').href = 'hyperlinkcategory.php?action=Create&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title)+'&editor=' + editor;
			if (title != '') {
				if (document.getElementById('update')) document.getElementById('update').href = 'hyperlinkcategory.php?action=Update&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title)+'&editor=' + editor;
				if (document.getElementById('delete')) document.getElementById('delete').href = 'hyperlinkcategory.php?action=Delete&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title)+'&editor=' + editor;
			} else {
				if (document.getElementById('update')) document.getElementById('update').href = 'javascript:alert(\'' + HtmlDecode(Text('hyperlinklistfilter_updatecategory')) + '\');';
				if (document.getElementById('delete')) document.getElementById('delete').href = 'javascript:alert(\'' + HtmlDecode(Text('hyperlinklistfilter_deletecategory')) + '\');';
			}
		} else if (document.all) {
			if (document.all['create']) document.all['create'].href = 'hyperlinkcategory.php?action=Create&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title)+'&editor=' + editor;
			if (title != '') {
				if (document.all['update']) document.all['update'].href = 'hyperlinkcategory.php?action=Update&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title)+'&editor=' + editor;
				if (document.all['delete']) document.all['delete'].href = 'hyperlinkcategory.php?action=Delete&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title)+'&editor=' + editor;
			} else {
				if (document.all['update']) document.all['update'].href = 'javascript:alert(\'' + HtmlDecode(Text('hyperlinklistfilter_updatecategory')) + '\');';
				if (document.all['delete']) document.all['delete'].href = 'javascript:alert(\'' + HtmlDecode(Text('hyperlinklistfilter_deletecategory')) + '\');';
			}
		}
	}
<?php } ?>
	parent.ready_section = section;
	parent.ready_category = category;
	parent.ready_title = title;
	if (parent.hyperlinklist && parent.hyperlinklist.hyperlinklistMenu) parent.hyperlinklist.hyperlinklistMenu.clearCookie();
	if (parent.hyperlinklist && parent.hyperlinklist.location) parent.hyperlinklist.location.href = 'hyperlinklist.php?editor=' + editor + '&section='+escape(section)+'&category='+escape(category)+'&title='+escape(title);
}

</script>
</head>
<body onLoad="parent.hyperlinklistfilter_ready();">
<div class="dtree">
<?php if (($upload_path <> "") && ($enable_upload == "yes")) { ?>
	<a id="create" target="hyperlinkinsert" href="javascript:alert(HtmlDecode(Text('hyperlinklistfilter_createcategory')));"><img alt="" src="../dtree/folder.gif"><script type="text/javascript">document.write(Text('hyperlinklistfilter_create'));</script></a>
	<a id="update" target="hyperlinkinsert" href="javascript:alert(HtmlDecode(Text('hyperlinklistfilter_updatecategory')));"><img alt="" src="../dtree/folder.gif"><script type="text/javascript">document.write(Text('hyperlinklistfilter_update'));</script></a>
	<a id="delete" target="hyperlinkinsert" href="javascript:alert(HtmlDecode(Text('hyperlinklistfilter_deletecategory')));"><img alt="" src="../dtree/trash.gif"><script type="text/javascript">document.write(Text('hyperlinklistfilter_delete'));</script></a>
<?php } else { ?>
	<a id="create" target="hyperlinkinsert" href="javascript:alert(HtmlDecode(Text('disabled')));"><img alt="" src="../dtree/folder.gif"><script type="text/javascript">document.write(Text('hyperlinklistfilter_create'));</script></a>
	<a id="update" target="hyperlinkinsert" href="javascript:alert(HtmlDecode(Text('disabled')));"><img alt="" src="../dtree/folder.gif"><script type="text/javascript">document.write(Text('hyperlinklistfilter_update'));</script></a>
	<a id="delete" target="hyperlinkinsert" href="javascript:alert(HtmlDecode(Text('disabled')));"><img alt="" src="../dtree/trash.gif"><script type="text/javascript">document.write(Text('hyperlinklistfilter_delete'));</script></a>
<?php } ?>
</div>
<hr>
<div class="dtree">
	<script type="text/javascript">
		<!--
		menuitem = 0;
		hyperlinklistfilterMenu = new dTree('hyperlinklistfilterMenu');
		hyperlinklistfilterMenu.clearCookie();
		menuitem_hyperlinks = menuitem;
		hyperlinklistfilterMenu.add(menuitem++,-1,Text('hyperlinklistfilter_hyperlinks'),'');
<?php if ($mambot) { ?>
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,"Articles",'javascript:openit(\'Articles\',\'page\',\'Articles\')','','','','imgfolder.gif');
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,"Static Content",'javascript:openit(\'Static Content\',\'page\',\'Static Content\')','','','','imgfolder.gif');
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,"Category",'javascript:openit(\'Category\',\'page\',\'Category\')','','','','imgfolder.gif');
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,"Section",'javascript:openit(\'Section\',\'page\',\'Section\')','','','','imgfolder.gif');
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,"Contact",'javascript:openit(\'Contact\',\'page\',\'Contact\')','','','','imgfolder.gif');
<?php } ?>
<?php if (($pages) || ($files) || ($images)) { ?>
		<?php folderMenu($pages_path, $pages, "menuitem_pages", "Text('hyperlinklistfilter_pages')", "Pages"); ?>
		<?php folderMenu($images_path, $images, "menuitem_images", "Text('hyperlinklistfilter_images')", "Images"); ?>
		<?php folderMenu($files_path, $files, "menuitem_files", "Text('hyperlinklistfilter_files')", "Files"); ?>
<?php } else if (! $mambot) { ?>
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,Text('hyperlinklistfilter_pages'),'javascript:openit(\'Pages\',\'page\',\'' + Text('hyperlinklistfilter_pages') + '\')','','','','imgfolder.gif');
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,Text('hyperlinklistfilter_images'),'javascript:openit(\'Images\',\'image\',\'' + Text('hyperlinklistfilter_images') + '\')','','','','imgfolder.gif');
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,Text('hyperlinklistfilter_files'),'javascript:openit(\'Files\',\'file\',\'' + Text('hyperlinklistfilter_files') + '\')','','','','imgfolder.gif');
		hyperlinklistfilterMenu.add(menuitem++,menuitem_hyperlinks,Text('hyperlinklistfilter_links'),'javascript:openit(\'Links\',\'link\',\'' + Text('hyperlinklistfilter_links') + '\')','','','','imgfolder.gif');
<?php } ?>
		hyperlinklistfilterMenu.draw();
		//-->
	</script>
</div>
</body>
</html>
